<?php

use Illuminate\Database\Seeder;

class RoleTable_Seeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
       DB::table('roles')->insert([
        	[
        		'name' => 'superadmin',
        		'display_name' => '超级管理员',
        		'description' => '最高权限',
        	],
        	[
        		'name' => 'admin',
        		'display_name' => '管理员',
        		'description' => '管理权限',
        	],
        	[
        		'name' => 'guest',
        		'display_name' => '访客',
        		'description' => '查看权限',
        	],
        ]);

        // foreach ($role as $value) {
        // 	Role::create($value);
        // }
    }
}
